import request from '@/utils/request'

// 查询等级划分规则列表
export function listLevel(query) {
  return request({
    url: '/group/stipulationLevel/listPage',
    method: 'post',
    data: query
  })
}

// 查询等级划分规则详细
export function getLevel(data) {
  return request({
    url: '/group/stipulationLevel/findDetail',
    method: 'post',
    data: data
  })
}

// 新增等级划分规则
export function addLevel(data) {
  return request({
    url: '/group/stipulationLevel/add',
    method: 'post',
    data: data
  })
}

// 修改等级划分规则
export function updateLevel(data) {
  return request({
    url: '/group/stipulationLevel/update',
    method: 'post',
    data: data
  })
}

// 删除等级划分规则
export function delLevel(data) {
  return request({
    url: '/group/stipulationLevel/deletes',
    method: 'post',
    data: data
  })
}
